package com.xujc.controller;

import com.opensymphony.xwork2.ActionSupport;
import com.xujc.dao.imp.DiscusDAO;
import com.xujc.dao.imp.ReviewDAO;

/**
 * Created by xujc on 7/4/15.
 */
public class DoReplayAction extends ActionSupport {
    private DiscusDAO mDiscusDAO;
    private ReviewDAO mReviewDAO;
    private String mContent;
    private int mAnodid;
    private int mUid;

    public String getContent() {
        return mContent;
    }

    public void setContent(String content) {
        mContent = content;
    }

    public int getAnodid() {
        return mAnodid;
    }

    public void setAnodid(int anodid) {
        mAnodid = anodid;
    }

    public int getUid() {
        return mUid;
    }

    public void setUid(int uid) {
        mUid = uid;
    }

    @Override
    public String execute() throws Exception {
        mReviewDAO.makeReview(mAnodid,mUid,mContent);
        return SUCCESS;
    }

    public void setDiscusDAO(DiscusDAO discusDAO) {
        mDiscusDAO = discusDAO;
    }


    public void setReviewDAO(ReviewDAO reviewDAO) {
        mReviewDAO = reviewDAO;
    }
}
